Skip to content

Conversation

@arun-silabs
Copy link
Contributor

Summary

This PR refactors the BLEManager implementation for the Silabs platform to reduce code duplication between the efr32 and rs911x variants.

  • Introduced AbstractBLEManagerImpl to consolidate shared BLE manager state, initialization, and delegate helpers. This centralizes common logic, preventing its duplication across different platform implementations.
  • Updated the efr32 and rs911x BLEManagerImpl classes to inherit from AbstractBLEManagerImpl, implementing only platform-specific methods such as PlatformInit and PostDriveBLEState.
  • Added the new shared source file (src/platform/silabs/AbstractBLEManagerImpl.cpp) to the relevant GN build targets for both efr32 and SiWx917.

Related issues

N/A

Testing

Manual testing was not performed due to environment limitations. Build verification with gn format/gn gen and a full build is recommended to confirm the refactor integrates cleanly.

Readability checklist

The checklist below will help the reviewer finish PR review in time and keep the
code readable:

  • PR title is
    descriptive
  • Apply the
    “When in Rome…”
    rule (coding style)
  • PR size is short
  • Try to avoid "squashing" and "force-update" in commit history
  • CI time didn't increase

See: Pull Request Guidelines


Open in Cursor Open in Web

This commit extracts common BLE manager functionality into an abstract base class, simplifying platform-specific implementations.

Co-authored-by: arunkumar.padakanti <[email protected]>
@cursor
Copy link

cursor bot commented Nov 6, 2025

Cursor Agent can help with this pull request. Just @cursor in comments and I'll start working on changes in this branch.
Learn more about Cursor Agents

@arun-silabs arun-silabs closed this Nov 6, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants